from django.contrib import admin
from .models import NewsInfo,NewsType

# Register your models here.
class NewsTypeAdmin(admin.ModelAdmin):
  list_display = ['id','name']


class NewsInfoAdmin(admin.ModelAdmin):
  list_display = ['id','title','content','comment','read']


admin.site.register(NewsType,NewsTypeAdmin)
admin.site.register(NewsInfo,NewsInfoAdmin)